<?php $this->pageTitle = 'Manage Tickets'; ?>
<?php Yii::app()->clientScript->registerCssFile('/themes/adminica/css/hometicket.css'); ?>
	<div id="hometicket">
		<div id="header">
					<a id="logo" href="/index.php" title="Support Center"><img src="/logo.php" border="0" alt="congkhuong" style="height: 5em"></a>
					<p>
									  Guest User - <a href="/login.php">Log In</a>
								  </p>
		</div>
		<div class="flat_area">
			<ul id="nav">
				<li><a class="home" href="<?php echo $this->createUrl('/tickets/client/index');?>">Support&nbsp;Center&nbsp;Home</a></li>
				<li><a class="new" href="<?php echo $this->createUrl('/tickets/client/create');?>">Open&nbsp;New&nbsp;Ticket</a></li>
				<li><a class="active status" href="<?php echo $this->createUrl('/tickets/client/checkStatus');?>">Check Ticket Status</a></li>
			</ul>
		</div>
		<?php
			$form = $this->beginWidget('CActiveForm', array(
				'id' => 'ticket-checkstatus-form',
				'enableAjaxValidation' => false,
				'clientOptions' => array(
				    'validateOnSubmit'=>true,
				    'validateOnChange'=>true,
				    'validateOnType'=>false,
				),
			));
		?>

		<table class="form-table">
			
			<tr>
				<th scope="row" width="100"><?php echo $form->labelEx($ticketClient, 'email'); ?></th>
				<td>
					<?php echo $form->textField($ticketClient, 'email', array('size' => 30)); ?>
					<?php echo $form->error($ticketClient, 'email'); ?>
				</td>
			</tr>
			
			<tr>
				<th scope="row" width="100"><?php echo $form->labelEx($ticketClient, 'ticket_code'); ?></th>
				<td>
					<?php echo $form->textField($ticketClient, 'ticket_code', array('size' => 30)); ?>
					<?php echo $form->error($ticketClient, 'ticket_code'); ?>
				</td>
			</tr>
			

		</table>

		<div class="row buttons">

			<?php echo CHtml::submitButton('View Status', array('class' => 'green')); ?>
			
		</div>

		<?php $this->endWidget(); ?>
</div>